<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>年龄</th>
        <th>班级</th>
    </tr>
    <tr th:each="student:${students}">
        <td th:text="${student.id}"></td>
        <td th:text="${student.name}"></td>
        <td>
            <input type="radio" name="gender" th:checked="${student.gender}=='男'"/>男
            <input type="radio" name="gender" th:checked="${student.gender}=='女'"/>女
        </td>
        <td th:text="${student.age}"></td>
        <td>
            <select name="classname">
                <option th:selected="${student.classname}=='计科一班'">计科一班</option>
                <option th:selected="${student.classname}=='计科二班'">计科二班</option>
                <option th:selected="${student.classname}=='计科三班'">计科三班</option>
            </select>
        </td>
    </tr>
</table>
</body>
</html>